<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix = "c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix = "fmt" %>
<%@page isELIgnored="false"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h2>${sessionScope.user.uname }的历史订单</h2>
<a href="shopping.jsp">返回商品界面</a>
<table>
	 <c:forEach items="${dbrecords }" var="rr" varStatus="a" >
	 	<tr>
	 		<td><h4 style="width: 108px; ">${a.index }</h4></td>
	 	    <td style="width: 210px; "><h3>订单ID：${rr.rid }</h4></td>
	 	    <td style="width: 216px; "><h3>书本ID：${rr.bid }</h4></td>
	 	    <td style="width: 216px; "><h3>数目：${rr.amount }</h4></td>
	 	    <td style="width: 216px; "><h3>日期：${rr.rdate }</h4></td>
	 	</tr>
	 </c:forEach>
	 </table>
</body>
</html>